import random
number1 = random.randint(2048, 4095)
print("亮灯情况：{0:b}".format(number1))
number2 = "{0:b}".format(number1)
i = random.choice([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11])
print("你打到了第%d 个灯：" % (i+1))
if int(number2[i]) == 1:
    print("游戏结果：true")
elif int(number2[i]) == 0:
    print("游戏结果：false")
